#ifndef __STDFILE_H_
#define __STDFILE_H_

#include "DoubleLinkList.h"
#include <stddef.h>

int IsFileExist(const char *FilePath);
char *LoadFromFile(const char *FilePath);
int GetFileSize(const char *FilePath);

void RemoveCharByElement(char *a, char element);
DLlist *GetLineFromFile(const char *FILEPath);
void Print(ElementType element);
void ChooseLineToPrint(const char *FilePath, int line, void (*func)(ElementType));

void WriteToFile(const char *FilePath, void *ptr, size_t sieze);
void WriteLineToFile(const char *FilePath, DLlist *list);

void CopyFile(const char *SourcePath, const char *TargetPath);
void AppendToFile(const char *FilePath, void *ptr, size_t size);

void MakeDir1(const char *name);
void MakeDir2(const char *name);
#endif